package cn.hzc.fortess.system.dao;

import cn.hzc.fortess.system.entity.JwtUserToken;
import cn.hzc.fortess.system.search.ApiTokenSearch;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JwtUserTokenDao {


    int insert(JwtUserToken record);

    JwtUserToken findToKenByUserId( Integer userId);

    int updateUsed(Integer userId);


    int delete(Integer id);

    int deleteExpired(Long currentTime);

    List<JwtUserToken> page(ApiTokenSearch search);
    long count(ApiTokenSearch search);

}